package com.ingesup.caribou.server.generator;

import static org.junit.Assert.*;

import org.junit.Test;
import org.jzy3d.maths.Coord3d;

public class FromFilesTest {

	@Test
	public void test() {
		FromFiles test3d=new FromFiles (".\\data\\egnos.txt");
		Coord3d premierPoint=new Coord3d(-179.995,0.044,0.054194);
		Coord3d dernierPoint=new Coord3d(180.000,134.934,0.030937);
		assertEquals(test3d.ensemble3d[0],premierPoint);
		System.out.println("le premier point est bon");
		assertEquals(test3d.ensemble3d[test3d.ensemble3d.length-1],dernierPoint);
		System.out.println("le dernier point est bon");
		
		
	}

}
